//启用状态
export const STRATEGYSTATUS = [
  { label: "启用", value: 1 },
  { label: "禁用", value: 2 }
];
export const STRATEGYSTATUSTEXT = {
  1: { label: "启用", value: 1 ,type:"success"},
  2: { label: "禁用", value: 2 ,type:"info"}
};

export const DEVICESTATUS = [
//  { label: "全部", value: 0 },
  { label: "在线", value: 1 },
  { label: "离线", value: 2 },
  { label: "故障", value: 3 },
  { label: "报警", value: 4 }
];
/** 状态颜色 */
export const TASK_CYCLE_UNIT_COLOR = {
	primary: '#114fbb',
	danger: '#f15353',
	warning: '#f5a82f',
	success: '#18a911',
	info: '#b8b8b8',
	demo: '#7b70db'
}
export const DEVICESTATUSTABLE = {
  1: { label: "在线", value: 1,type:"success" },
  2: { label: "离线", value: 2,type:"info" },
  3: { label: "故障", value: 3,type:"warning" },
  4: { label: "报警", value: 4 ,type:"danger"}
};
//通讯状态
export const COMMSTATUS = [
//  { label: "全部", value: 0 },
  { label: "在线", value: 1 },
  { label: "离线", value: 2 }
];
export const COMMSTATUSTEXT = {
//  0: { label: "全部", value: 0 },
  1: { label: "在线", value: 1,type:"success"  },
  2: { label: "离线", value: 2,type:"info"  }
};
//控制方式
export const CONTROLMODE = [
  { label: "平台", value: 1 },
  { label: "联动控制", value: 2 },
  { label: "小程序", value: 3 },
  { label: "APP", value: 4 },
  { label: "定时任务", value: 5 }
];
//触发类型
export const TRIGGERTYPE = [
  { label: "告警触发", value: 1 },
  { label: "数据触发", value: 2 },
  { label: "事件触发", value: 3 },
  { label: "控制触发", value: 4 },
]
export const TRIGGERTYPETEXT = {
  1:{ label: "告警触发", value: 1 },
  2:{ label: "数据触发", value: 2 },
  3:{ label: "事件触发", value: 3 },
  4:{ label: "控制触发", value: 4 },
}
//触发参数
export const TRIGGERPARAM = [
  { label: "过压", value: 1 },
  { label: "过流", value: 2 },
]
//触发条件
export const TRIGGERCONDITION = [
  { label: "等于", value: 1 },
  { label: "大于", value: 2 },
  { label: "小于", value: 3 },
  { label: "大于等于", value: 4 },
  { label: "小于等于", value: 5 },
  { label: "不等于", value: 6 },
]
export const TRIGGERCONDITIONTEXT = {
  1:{ label: "等于", value: 1 },
  2:{ label: "大于", value: 2 },
  3:{ label: "小于", value: 3 },
  4:{ label: "大于等于", value: 4 },
  5:{ label: "小于等于", value: 5 },
  6:{ label: "不等于", value: 6 },
}
//联动控制事件触发下拉框
export const EVENTTRIGGER = [
  { label: "确认", value: '1' },
]
//网关类型
export const GATEWAYTYPE = [
  { label: "TCP网关", value: 1 },
  { label: "用传", value: 2 },
]
export const GATEWAYTYPETEXT = {
 1: { label: "TCP网关", value: 1 },
  2:{ label: "用传", value: 2 },
}